package server;
/*
日志记录器接口,用于记录日志到控制台、文件等
*/
/*
2023/2/8 该接口内容全部写完,后续直接使用,无需修改
by cyl
 */
public interface Logger {
    //日志打印级别 数字越小级别越高
    public static final int FATAL = Integer.MIN_VALUE;
    public static final int ERROR = 1;
    public static final int WARNING = 2;
    public static final int INFORMATION = 3;
    public static final int DEBUG = 4;

    public Container getContainer();
    public void setContainer(Container container);
    public String getInfo();
    //获取当前日志打印级别
    public int getVerbosity();
    //设置当前日志打印级别
    public void setVerbosity(int verbosity);
    public void log(String message);
    public void log(Exception exception, String msg);
    public void log(String message, Throwable throwable);
    public void log(String message, int verbosity);
    public void log(String message, Throwable throwable, int verbosity);
}
